package cn.tedu.ivos.controller;

import cn.tedu.ivos.context.AuthenticationContext;
import cn.tedu.ivos.pojo.LoginUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class ResourceController {
    @GetMapping("/select")
    public String helloSelect() {
        LoginUser logUser=AuthenticationContext.getLoginToken();
        System.out.println(logUser);
        String data= "Hello from a select endpoint! You don't need to be authenticated to see this.";
        return data;
    }
}
